package cn.tedu.store.commons.pojo.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AdminAddNewDTO implements Serializable {
    /**
     * 管理员用户名
     */
    @ApiModelProperty(value = "用户名", example = "张三", required = true)
    @NotNull(message = "必须填写用户名")
    private String username;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", example = "123456", required = true)
    @NotNull(message = "必须设置密码")
    private String password;
    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", example = "暂无", required = true)
    private String icon;
    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号码", example = "13085447799", required = true)
    @NotNull(message = "必须填写手机号码")
    private String phone;
    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", example = "法外狂徒", required = true)
    @NotNull(message = "必须设置昵称")
    private String nickname;
}
